<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>保险界面首页</title>
<link rel="stylesheet" type="text/css" href="../../css/mokstyle.css" />
<link rel="stylesheet" type="text/css" href="../../css/usedcar.css"/>
<script type="text/javascript" src="../../gif/FusionCharts.js"></script>
<script type="text/javascript">
			function init(){
    			if("${message}"!=""){
					alert("${message}");
				}
    		}
		</script>
</head>
<body onload="init();">
<div  id="wrap">

       <div class="header">
       		<div class="logo"><a href="/aasimp/mok/insurance/insur_index"><img src="../../images/logo.gif" alt="" title="" border="0" /></a></div>            
        <div id="menu">
            <ul>                                                                       
            <li class="selected"><a href="/aasimp/mok/insurance/insur_index">首页</a></li>
            <li><a href="personInfo.jsp">个人保险信息</a></li>
            <li><a href="/aasimp/mok/insurance/insur_showAllLp">车辆理赔信息</a></li>
            <li><a href="/aasimp/mok/insurance/insur_showAllLpCom">车辆理赔审核</a></li>
            <li><a href="/aasimp/mok/insurance/insur_showall">车辆保险套餐</a></li>
            <li><a href="/aasimp/mok/insurance/insur_showallCom">车辆保险受理</a></li>
            <li><a href="/aasimp/mok/insurance/insur_showBb">报表统计</a></li>
            </ul>
        </div>     
            
            
       </div> 
       
       <table>
        <td height="100" align="center">   
    	<div id="chartdiv1" align="center">FusionGadgets</div>
    	
	   	<script type="text/javascript">
			 var myChart1 = new FusionCharts("../../gif/Pie2D.swf", "myChartId", "280", "193", "0", "0");
			 myChart1.setDataXML("${requestScope.mydate}");
			 myChart1.render("chartdiv1");
	    </script>
	    
  		 </td>
   
	   <td height="150" align="center">   
	    	<div id="chartdiv2" align="center">FusionGadgets</div>
		   	<script type="text/javascript">
				 var myChart1 = new FusionCharts("../../gif/Pie2D.swf", "myChartId", "280", "193", "0", "0");
				 myChart1.setDataXML("${requestScope.mydate1}");
				 myChart1.render("chartdiv2");
		    </script>
		    
	   </td>
	   
	    <td height="150" align="center">   
	    	<div id="chartdiv4" align="center">FusionGadgets</div>
	    	
		   	<script type="text/javascript">
				 var myChart1 = new FusionCharts("../../gif/Column2D.swf", "myChartId", "280", "193", "0", "0");
				 myChart1.setDataXML("${requestScope.mydate3}");
				 myChart1.render("chartdiv4");
		    </script>
	   </td>
       </table>
		<div id="main">
			<div class="div_top">
			</div>
			<br />
			<br />
			<table class="tbimg" cellpadding="0" cellspacing="0">
			
			
   
				<s:iterator value="#request.allcompany" var="company">
					<tr onmouseover="this.style.background='#FFE4D2'"
						onmouseout="this.style.background='#FFF'">
						<td class="img">
							<a href="/aasimp/mok/insurance/insur_showTcByCom?idcompany=${company.idCompany }" rel="nofollow" target="_blank"><img src="${company.pecture}" /> </a>
						</td>
						<td class="t">
							<br />
							公司编号
							<s:property value="#company.idCompany" />
							<br />
							公司名称
							<s:property value="#company.companyname" />
							
							<span class='c_ccc'>/</span>联系电话
							<s:property value="#company.companyphone" />
							
						</td>
						<td class="tc">
						<a href="${company.url}#company.url"> 网上报价</a>
						</td>
						<td>
						</td>
					</tr>
				</s:iterator>
			</table>
			<br />
			<center>
			<div class="pageNo" id="pageNo">
				<a href="/aasimp/mok/insurance/insur_queryCom?no=1">首页</a>
				<c:if test="${sessionScope.pageNoSale != 1}">
					<a href="/aasimp/mok/insurance/insur_queryCom?no=${sessionScope.pageNoSale-1}">上一页</a>
				</c:if>
				<c:forEach var="i" begin="1"
					end="${sessionScope.pageNoCenterSale + 2}">
					<c:if test="${i <= sessionScope.totalNoSale }">
						<c:choose>
							<c:when test="${i == sessionScope.pageNoSale}">
								<a href="javascript:void(0)">${i}</a>
							</c:when>
							<c:otherwise>
								<a href="/aasimp/mok/insurance/insur_queryCom?no=${i}">${i}</a>
							</c:otherwise>
						</c:choose>
					</c:if>
				</c:forEach>
				<c:if test="${sessionScope.pageNoSale +4 < sessionScope.totalNoSale}">
					<a href="/aasimp/mok/insurance/insur_queryCom?no=${sessionScope.pageNoSale+1}">下一页</a>
				</c:if>
				<a href="/aasimp/mok/insurance/insur_queryCom?no=${sessionScope.totalNoSale}">末页</a>
				&nbsp;&nbsp;&nbsp;&nbsp;共有<label style="color: red;">${sessionScope.totalSale}</label>条信息
			</div>
			 <table  class="gonggao_table">
   <tr>
 
  
   
   </tr>
	</table>
			</center>
			
			
		<div class="clear"></div>
        </div><!--end of left content-->
        
       <div class="clear"></div>
	</body>
</html>